import request from "@/utils/request.js"

// 获取党组织下拉树列表
export const treeSelect = () => {
	return request({
		url: `/app/dj/user/treeSelect`
	})
}
// 点击党支部进入二级页面的用户列表
export const getUserByDept = (data) => {
	return request({
		url: `/app/dj/user/getUserByDept`,
		data
	})
}
// 获取党员姓名首字母排序
export const getUserByLetter = () => {
	return request({
		url: `/app/dj/user/getUserByLetter`
	})
}
// 模糊查询指定名称的党建用户
export const getUsersByName = (data) => {
	return request({
		url: `/app/dj/user/getUsersByName`,
		data
	})
}

// 点击单个党员获取的用户信息
export const getUserById = (data) => {
	return request({
		url: `/app/dj/user/getUserById`,
		data
	})
}
// 查看党员的历史党费数据
export const getPayRecord = (data) => {
	return request({
		url: `/app/dj/cost/getDjUserCost`,
		data
	})
}
// 查看具体的党费缴纳信息
export const getUserCost = (data) => {
	return request({
		url: `/app/dj/cost/getUserCost`,
		data
	})
}